<template>
  <div class="empty-container">
    <Icon type="empty"></Icon>
    <p>{{ text }}</p>
  </div>
</template>

<script>
import Icon from '@/components/Icon'
export default {
  components: {
    Icon
  },
  props: {
    text: {
      type: String,
      default: () => '无数据'
    }
  }
}
</script>

<style lang="scss" scoped>
@import '~@/styles/global.scss';
@import '~@/styles/common.scss';
.empty-container {
  @include self-center;
  i {
    font-size: 60px;
    color: $gray;
  }
  p {
    color: $gray;
    text-align: center;
  }
}
</style>